package com.khalil.kkadmin.system.dms;

import com.khalil.kkadmin.infrastructure.jpa.domain.EntityBase;
import com.khalil.kkadmin.system.dms.store.StoreType;
import jakarta.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

@Table
@EntityListeners(AuditingEntityListener.class)
@Entity
@EqualsAndHashCode(callSuper = true)
@Data
public class DmsDocument extends EntityBase<Long> {
    private String name; // 文件名
    private String extension; // 文件后缀
    private String contentType; // 文件类型
    private long size; // 文件大小
    private String path;
    @Enumerated(EnumType.STRING)
    private StoreType storeType;
}
